package lambda;

import com.sun.javafx.image.impl.IntArgb;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author Klys
 * @Date 2023/4/26 13:06
 * @Description
 * @Version 1.0
 */
public class Colle {

    @Test
    public void demo01() {

        List<Integer> list = Arrays.asList(1, 4, 3, 2);
        Collections.sort(list);
        System.out.println(list);
        list.stream().filter((a) -> {
            if (a > 2) {
                System.out.println(a);
            }
            return false;
        }).collect(Collectors.toList());
    }
}
